<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="sysDefault" />
<script
	src="${staticPath}/lib/jquery-datatables/1.9.4/js/jquery.dataTables.min.js"
	type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready(function() {
	});
	function funform(url, target) {
		window.open(url, target);
	}
</script>
</head>
<body>
	<div class="container-fluid">
		<div class="row">
			<div class="col-xs-12" style="margin-left:-15px;">
				<div class="panel panel-default">
					<div class="panel-heading">
						<h3 class="panel-title">
							新闻列表
						</h3>
					</div>
					<form:form name="listForm"  modelAttribute="newsCriteria" method="post" class="form-inline" role="form">				
					<tags:message content="${message}" />
					<table class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								<th>标题</th>
								<th>新闻类别</th>
								<th>创建人</th>
								<th>创建时间</th>
								<th>修改人</th>
								<th>修改时间</th>
								<th width="80px;">操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${page.list}" var="news">
								<tr>
									<td>${news.title}</td>
									<td>${news.categoryName}</td>
									<td>${news.createName}</td>
									<td><fmt:formatDate value="${news.createTime}"
											pattern="yyyy-MM-dd HH:mm:ss" /></td>
									<td>${news.updateName}</td>
									<td><fmt:formatDate value="${news.updateTime}"
											pattern="yyyy-MM-dd HH:mm:ss" /></td>

									<td><a href="${contextPath}/sys/news/category/${news.id}/view">预览</a>
										<a href="${contextPath}/sys/news/category/${news.id}/delete"
										onclick="return Oosp_Confirm('确认要删除该条数据吗？', this.href)" id="delete">删除</a>
								</tr>
							</c:forEach>
						</tbody>
					</table>
					<div class="panel-footer">
						<pager:pager pageSize="${page.pageSize}" pageNo="${page.pageNo}"
							url="" total="${page.total}" />
						<script type="text/javascript" src="${staticPath}/js/list.js"></script>
					</div>
					</form:form>
				</div>
			</div>
		</div>
	</div>

</body>
</html>